package com.zzns.web;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import java.util.HashMap;
import java.util.Map;

/**
 * 首页处理
 * Date:15/4/23
 * Time:10:47
 * Author Mr.Object
 */
@Controller
@RequestMapping("")
public class IndexController {


    /**
     * 默认加载首页
     * @param model
     * @return
     */
    @RequestMapping(value = "/",method = RequestMethod.GET)
   public String getMessage(Model model){

        return "/index";

    }

    /**
     * table页
     * @param model
     * @return
     */
    @RequestMapping(value = "/jqGrid",method = RequestMethod.GET)
    public String getTable(Model model) {

        return "/jqgrid";
    }


    /**
     * 表单验证
     * @param model
     * @return
     */
    @RequestMapping(value = "/form",method = RequestMethod.GET)
    public String getForm(Model model) {
        return "/form-validate";
    }

    /**
     * 弹出框
     * @return
     */
    @RequestMapping(value = "/dialog",method = RequestMethod.GET)
    public String getDialog(){
        return "dialog";
    }

    /**
     * 导航
     * @return
     */
    @RequestMapping(value = "/left",method = RequestMethod.GET)
    public String getLeft(){
        return "left";
    }




   /* @RequestMapping(value = "/error-404",method = RequestMethod.GET)
    public String getError(){
        return "error-404";
    }*/
}